<?php
/**
 * Get routes from an Ini file.
 *
 */
class Router_Ini extends Router_File {
    /**
     * Read the Ini file and build the route list.
     */
    public function __construct($filename, $class = false, $method = false) {
        parent::__construct($filename, $class, $method);
		$routes = parse_ini_file($filename, true);
		foreach($routes as $route) {
		    $this->addRoute($route['route'], $route['class'], $route['method']);
		}
    }
}
?>